import { PropsWithChildren } from 'react'
import { useLaunch } from '@tarojs/taro'
import BasicAppProvider from './components/BasicAppProvider'

import './app.less'
import '@nutui/nutui-react-taro/dist/style.css'
import './assets/theme/index.less'

function App({ children }: PropsWithChildren<any>) {
  useLaunch(() => {
    console.log('App launched.', children)
  })

  // children 是将要会渲染的页面
  return BasicAppProvider({ children })
}
  


export default App
